package mapper;

import pojo.Restaurant;

import java.util.List;
import java.util.Map;

public interface RestaurantMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Restaurant record);

    int insertSelective(Restaurant record);

    Restaurant selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Restaurant record);

    int updateByPrimaryKey(Restaurant record);

    Restaurant selectByUserId(Integer userId);

    List<Restaurant> selectByStatus(Map<String,Object> map);

    int selectTotal(Map<String,Object> map);

    int updateMoneyById(Map<String,Object> map);
}
